package user.losacorp.xml;

public class Video {
	
	private String src;
	private String type;
	private String allowscriptaccess;
	private String allowfullscreen;
	private int width = 480;
	private int height = 385;
	
	public final static String ALLOW_SCRIPT_ACCESS = new String("allowscriptaccess");
	public final static String ALLOW_FULL_SCREEN = new String("allowfullscreen");
	
	
	/**
	 * @param src
	 * @param type
	 * @param allowscriptaccess
	 * @param width
	 * @param height
	 */
	public Video(String src, String type, String allowscriptaccess, String allowfullscreen,
			int width, int height) {
		this.src = src;
		this.type = type;
		this.allowscriptaccess = (allowscriptaccess.length()!=0)?allowscriptaccess:"always";
		this.allowfullscreen = (allowfullscreen.length()!=0)?allowfullscreen:"true";
		this.width = width;
		this.height = height;
	}
	
	/**
	 * @return the src
	 */
	public String getSrc() {
		return src;
	}
	/**
	 * @param src the src to set
	 */
	public void setSrc(String src) {
		this.src = src;
	}
	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}
	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}
	/**
	 * @return the allowscriptaccess
	 */
	public String getAllowscriptaccess() {
		return allowscriptaccess;
	}
	/**
	 * @param allowscriptaccess the allowscriptaccess to set
	 */
	public void setAllowscriptaccess(String allowscriptaccess) {
		this.allowscriptaccess = allowscriptaccess;
	}
	/**
	 * @return the allowfullscreen
	 */
	public String getAllowfullscreen() {
		return allowfullscreen;
	}
	/**
	 * @param allowfullscreen the allowfullscreen to set
	 */
	public void setAllowfullscreen(String allowfullscreen) {
		this.allowfullscreen = allowfullscreen;
	}
	/**
	 * @return the width
	 */
	public int getWidth() {
		return width;
	}
	/**
	 * @param width the width to set
	 */
	public void setWidth(int width) {
		this.width = width;
	}
	/**
	 * @return the height
	 */
	public int getHeight() {
		return height;
	}
	/**
	 * @param height the height to set
	 */
	public void setHeight(int height) {
		this.height = height;
	}

	
}
